package com.mycompany.myapp.dto;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/** 
 * This class represents the primary key of the monstre table.
 */
public class MonstrePk implements Serializable
{
	protected int idMonstre;

	/** 
	 * This attribute represents whether the primitive attribute idMonstre is null.
	 */
	protected boolean idMonstreNull;

	/** 
	 * Sets the value of idMonstre
	 */
	public void setIdMonstre(int idMonstre)
	{
		this.idMonstre = idMonstre;
	}

	/** 
	 * Gets the value of idMonstre
	 */
	public int getIdMonstre()
	{
		return idMonstre;
	}

	/**
	 * Method 'MonstrePk'
	 * 
	 */
	public MonstrePk()
	{
	}

	/**
	 * Method 'MonstrePk'
	 * 
	 * @param idMonstre
	 */
	public MonstrePk(final int idMonstre)
	{
		this.idMonstre = idMonstre;
	}

	/** 
	 * Sets the value of idMonstreNull
	 */
	public void setIdMonstreNull(boolean idMonstreNull)
	{
		this.idMonstreNull = idMonstreNull;
	}

	/** 
	 * Gets the value of idMonstreNull
	 */
	public boolean isIdMonstreNull()
	{
		return idMonstreNull;
	}

	/**
	 * Method 'equals'
	 * 
	 * @param _other
	 * @return boolean
	 */
	public boolean equals(Object _other)
	{
		if (_other == null) {
			return false;
		}
		
		if (_other == this) {
			return true;
		}
		
		if (!(_other instanceof MonstrePk)) {
			return false;
		}
		
		final MonstrePk _cast = (MonstrePk) _other;
		if (idMonstre != _cast.idMonstre) {
			return false;
		}
		
		if (idMonstreNull != _cast.idMonstreNull) {
			return false;
		}
		
		return true;
	}

	/**
	 * Method 'hashCode'
	 * 
	 * @return int
	 */
	public int hashCode()
	{
		int _hashCode = 0;
		_hashCode = 29 * _hashCode + idMonstre;
		_hashCode = 29 * _hashCode + (idMonstreNull ? 1 : 0);
		return _hashCode;
	}

	/**
	 * Method 'toString'
	 * 
	 * @return String
	 */
	public String toString()
	{
		StringBuffer ret = new StringBuffer();
		ret.append( "com.mycompany.myapp.dto.MonstrePk: " );
		ret.append( "idMonstre=" + idMonstre );
		return ret.toString();
	}

}
